export default url => {
    const crud = window.$crud(url)

    // 获取子表数据
    crud.getCData = (params) => window.$axios({
        url:`demo/matecarbasic/ewMatecardetail/page`,
        method: 'get',
        params:params  
    })
    // 获取孙表数据
    crud.getGData = (params) => window.$axios({
        url:`demo/matecardetail/ewCurm/page`,
        method: 'get',
        params:params  
    })
    // 生成送货单
    crud.CreateDelivery = (id) => window.$axios({
        url:`demo/matecarbasic/CreateDelivery/${id}`,
        method: 'put'
    })

    return {
        ...crud
    }
}